package com.aaie.gru.gruenum;

/**
 * 用户类型枚举 (0:员工,1:监护人,2:家长,3:学校,4:学生)
 */
public enum UserType {

    STAFF("0", "员工"),
    GUARDIAN("1", "监护人"),
    PARENT("2", "家长"),
    SCHOOL("3", "学校"),
    STUDENT("4", "学生");

    private String index;
    private String value;

    UserType(String index, String value) {
        this.index = index;
        this.value = value;
    }

//    public String getIndex() {
//        return index;
//    }

    public String getValue() {
        return value;
    }

    public static void main(String[] args) {
//        System.out.println(GUARDIAN.getIndex());
        System.out.println(GUARDIAN.getValue());
    }
}
